package group2.beans;

import group2.core.entities.CamelUser;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 * Used for authentication controls.
 * 
 * @author cnilsson
 */
@ManagedBean
@SessionScoped
public class AuthSessionBean implements Serializable {

    private CamelUser loggedInUser = null;
    private boolean postAuth = false;
    private boolean adminAuth = false;
    
    public boolean isPostAuth() {
        return postAuth;
    }

    public void setPostAuth(boolean postAuth) {
        this.postAuth = postAuth;
    }

    public CamelUser getLoggedInUser() {
        return loggedInUser;
    }

    public void setLoggedInUser(CamelUser loggedInUser) {
        this.loggedInUser = loggedInUser;
    }

    public boolean isAdminAuth() {
        return adminAuth;
    }

    public void setAdminAuth(boolean adminAuth) {
        this.adminAuth = adminAuth;
    }
    
    /** Creates a new instance of AuthSessionBean */
    public AuthSessionBean() {
    }
}
